<template>
  <div class="no-data">
    <img :src="require('../assets/images/' + img)" class="no-data-img" />
    <span class="no-data-content">{{content}}</span>
  </div>
</template>

<script>
export default {
  props: {
    content: {
      type: String,
      default: '暂无数据',
    },

    img: {
      type: String,
      default: 'ic_no_data.png',
    },
  },
}
</script>

<style lang="less">
.no-data {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  .no-data-img {
    width: 80px;
    height: 80px;
  }
  .no-data-content {
    color: #727E89;
    opacity: 0.5;
    font-family: PingFangSC-Regular;
    font-size: 21px;
    margin-top: 10px;
  }
}
</style>